package com.runa.monitor.platinterface.extend.equ;

import com.runa.protocol.dto.IRequestData;
import com.runa.protocol.dto.IResponseData;
import com.runa.rccprotocol.dto.ConcentratorRequestData;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 2024/9/20 11:40
 * zhangYB
 */
public class EquInstructRequest extends ConcentratorRequestData {

    private byte[] bytes;

    private boolean alreadySend;
    private long sendStartTime;

    private List<String> responses = new ArrayList<>();

    private EquInstruct equInstruct;

    protected EquInstructRequest(String address) {
        super(address);
    }

    public List<String> getResponses() {
        return responses;
    }

    public void setResponses(List<String> responses) {
        this.responses = responses;
    }

    public EquInstruct getEquInstruct() {
        return equInstruct;
    }

    public void setEquInstruct(EquInstruct equInstruct) {
        this.equInstruct = equInstruct;
    }

    public boolean isAlreadySend() {
        return alreadySend;
    }

    public void setAlreadySend(boolean alreadySend) {
        this.alreadySend = alreadySend;
    }

    public long getSendStartTime() {
        return sendStartTime;
    }

    public void setSendStartTime(long sendStartTime) {
        this.sendStartTime = sendStartTime;
    }

    @Override
    public byte[] getData() {
        return bytes;
    }

    public void setData(byte[] bytes) {
        this.bytes = bytes;
    }

    @Override
    public short getTransSign() {
        return 0;
    }

    @Override
    public void setTransSign(short transSign) {

    }

    @Override
    public boolean isReadWrite() {
        return false;
    }

    @Override
    public boolean check(IResponseData data) {
        return true;
    }

    @Override
    public boolean isHaveResult() {
        return true;
    }

}
